project(OCTTrackingApp)
cmake_minimum_required(VERSION 2.6)
find_package(Qt4 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(VTK REQUIRED)

include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${OpenCV_INCLUDES} /usr/local/include/)

INCLUDE(${VTK_USE_FILE})

SET(USE_VTK ON)
SET(VTK_USE_QVTK ON)


set(OCTTrackingApp_SRCS OCTTrackingCore/OCTTrackingThread.cpp Landmark/LandmarkPattern.cpp OCTTrackingCore/OCTLandmarkLocating.cpp OCTTrackingCore/OCTImageProcessing.cpp Landmark/Landmark.cpp OCTSource/OCTSourceSetting.cpp OCTTrackingApp.cpp main.cpp)
qt4_automoc(${OCTTrackingApp_SRCS})
add_executable(OCTTrackingApp ${OCTTrackingApp_SRCS})
target_link_libraries(OCTTrackingApp ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${OpenCV_LIBS} vtkCommon)

add_subdirectory(OCTTrackingCore)
add_subdirectory(Landmark)
add_subdirectory(OCTSource)
add_subdirectory(AppUI)